<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="bootstrap/css/bootstrap.css">
    <script src="js/jquery-2.1.3.min.js"></script>
    <script src="bootstrap/js/bootstrap.js"></script>
    <style>
            ul{display:block;margin:0;padding:0;list-style:none;}
    li{display:block;margin:0;padding:0;list-style: none;}
    img{border:0;}
        .place{height:40px; background:url(images/righttop.gif) repeat-x;}
    .place span{line-height:40px; font-weight:bold;float:left; margin-left:12px;}
    .placeul li{float:left; line-height:40px; padding-left:7px; padding-right:12px; background:url(images/rlist.gif) no-repeat right;}
    .placeul li:last-child{background:none;}
        </style>
        </head>
        <body>
        <div class="place"> <span>位置：</span>
          <ul class="placeul">
            <li><a href="index.html">首页</a></li>
            <li>信息列表</li>
          </ul>
        </div>
    
    <div class="container-fluid" >
        <div class="container"  style="margin-top: 20px;padding: 30px;">
                <div class=" input-group">
                        <input type="text" class="form-control input-lg text-success" placeholder="请输入用户编号" id="user_id" required><span class="input-group-addon btn btn-info text-success" > <a data-toggle="collapse" data-parent="#accordion" 
                            onclick="query()">查询</a></span>
                    </div>
                </div>
    <div class="panel panel-info collapse "  id="infoOlder" >
            <div class="panel-heading">
                  <h3 class="panel-title">老人信息修改</h3>
            </div>
            <div class="panel-body" >
                  <form class="form-horizontal" role="form">
                          <div class="form-group">
                            <label for="firstname" class="col-sm-1 control-label">姓名</label>
                            <div class="col-sm-2">
                              <input type="text" class="form-control" id="firstname" placeholder="请输入名字" >
                            </div>
                            <label for="firstname" class="col-sm-1 control-label">用户编号</label>
                            <div class="col-sm-2">
                                  <input type="text" class="form-control" disabled  id="firstname"  >
                          </div>
                          </div>
                          <div class="form-group">
                                  <label for="firstname" class="col-sm-1 control-label">身份证号</label>
                                  <div class="col-sm-4">
                                    <input type="text" class="form-control" id="firstname"  >
                                  </div>
                                  <label for="firstname" class="col-sm-1 control-label">年龄</label>
                                  <div class="col-sm-1">
                                        <input type="text" class="form-control" id="firstname"  >
                                </div>
                                <label for="firstname" class="col-sm-1 control-label">性别</label>
                                <div class="col-sm-1">
                                      <select class="form-control ">
                                              <option>男</option>
                                              <option>女</option>
                                            </select>
                              </div>
                                </div>
                                <div class="form-group">
                                      <label for="firstname" class="col-sm-1 control-label">电话号码</label>
                                      <div class="col-sm-3">
                                        <input type="text" class="form-control" id="firstname"  >
                                      </div>
                                      <label for="firstname" class="col-sm-1 control-label">入住类型</label>
                                      <div class="col-sm-4">
                                              <label class="radio-inline">
                                                      <input type="radio" name="optionsRadiosinline" id="optionsRadios3" value="option1" checked> 试住
                                                  </label>
                                                  <label class="radio-inline">
                                                      <input type="radio" name="optionsRadiosinline" id="optionsRadios4"  value="option2"> 商住
                                                  </label>
                                                  <label class="radio-inline">
                                                          <input type="radio" name="optionsRadiosinline" id="optionsRadios3" value="option1" checked> 短住
                                                      </label>
                                                      <label class="radio-inline">
                                                          <input type="radio" name="optionsRadiosinline" id="optionsRadios4"  value="option2"> 长住
                                                      </label>
                                            </div>
                                            <label for="firstname" class="col-sm-1 control-label">居住方式</label>
                                      <div class="col-sm-2">
                                              <label class="radio-inline">
                                                      <input type="radio" name="optionsRadiosinline" id="optionsRadios3" value="option1" checked> 拼房
                                                  </label>
                                                  <label class="radio-inline">
                                                      <input type="radio" name="optionsRadiosinline" id="optionsRadios4"  value="option2"> 包房
                                                  </label>
                                                
                                            </div>
                                    </div>
                                    <div class="form-group ">
                                          <label for="firstname" class="col-sm-1 control-label">入住时间</label>
                                          <div class="col-sm-2 ">
                                            <input type="date" class="form-control " id="firstname" >
                                          </div>

                                        <label for="firstname" class="col-sm-1 control-label">餐饮类型</label>
                                        <div class="col-sm-2">
                                              <select class="form-control ">
                                                      <option>普食</option>
                                                      <option>营养餐</option>
                                                    </select>
                                      </div>
                                      <label for="firstname" class="col-sm-1 control-label">护理级别</label>
                                      <div class="col-sm-2">
                                            <select class="form-control ">
                                                    <option>自理</option>
                                                    <option>介护</option>
                                                    <option>介助</option>
                                                  </select>
                                    </div>
                                        </div>
                                        <div class="form-group ">
                                              <label for="firstname" class="col-sm-2 control-label">合同开始时间</label>
                                              <div class="col-sm-2 ">
                                                <input type="date" class="form-control " id="firstname" >
                                              </div>
                                              <label for="firstname" class="col-sm-2 control-label">合同结束时间</label>
                                              <div class="col-sm-2 ">
                                                <input type="date" class="form-control " id="firstname" >
                                              </div>
                                          </div>
                                          <div class="form-group ">
                                                  <label for="firstname" class="col-sm-1 control-label">价格体系</label>
                                                 <div class="col-sm-2">
                                                <select class="form-control ">
                                                    <option>2018价格体系</option>
                                                    <option>2019价格体系</option>
                                                  </select>
                                                
                                                  </div>
                                                  <label for="firstname" class="col-sm-offset-2 col-sm-1 control-label">房间号</label>
                                                  <div class="   col-sm-2">
                                                          <input type="text" class="form-control" id="firstname" placeholder="请输入房间号"> 
                                                   </div>
                                              </div>
                                              <div class="form-group ">
                                                      <label for="firstname" class="col-sm-1 control-label">备注:</label>
                                                      <div class="   col-sm-8">
                                                     <textarea name="" id="input" class="form-control" rows="3" required="required"></textarea>
                                                     </div>
                                                  </div>
                          <div class="form-group" style="padding:50px 0px;">
                              
                          </style>>
                            <div class="col-sm-offset-8 col-sm-3">
                              <button type="submit" class="btn btn-primary btn-lg">信息录入</button>
                              <button type="submit" class="btn btn-success btn-lg">重置</button>
                            </div>
                          </div>
                        </form>
            </div>
      </div>

</div>

</body>
<script src="ajax-lib/ajaxutils.js"></script>
<script>
  function info(data){
  }
function query(){
  var user_id = $("#user_id").val();
  if(user_id.trim()=='')
  {alert("用户编号不能为空")
  return;
  }
		alert(user_id);
		 	ajax(
			{
				url:"http://localhost:8080/resthome/InfoQueryServlet",
				type:"json",
				callback:info,
				method:"POST",
				params:user_id
      }
       )
  $('.collapse').collapse();
}

</script>
</html>